﻿using System.Windows;
using XEvolve.Presentation;

namespace Demo.App.Core
{
    /// <summary>
    /// Interaction logic for DemoWindow.xaml
    /// </summary>
    public partial class DemoWindow
    {
        public static DependencyProperty ParameterProperty = DependencyProperty.Register("Parameter", typeof (object),
                                                                                         typeof (DemoWindow));
        public DemoWindow()
        {
            InitializeComponent();
        }

        public object Parameter
        {
            get { return GetValue(ParameterProperty); }
            set { SetValue(ParameterProperty, value); }
        }

        private void OnViewInitialized(object sender, InitializeViewEventArgs e)
        {
            Parameter = e.Parameter;
        }
    }
}
